<title>QQ群签到 设置</title>
<div class="app-content bg-bai">
    <form role="form" id="qqsetgn" onsubmit="return false;"> <input
        type="hidden" name="qid" value="{$job.qid}"> <input type="hidden" name="id" value="{$job.uid}">
    <div class="p4">
        <div class="lan bold">[每日自动] QQ群签到</div>
        <div class="mt2 mb3 f3 hui">签到地点填写示例：深圳市 · 腾讯大厦 （不使用请留空）</div>
        <hr/>
        <div class="pt4 pb4 bold">
            <label class="i-checks"><input type="radio" value="0"
                                                                                                 name="is"
                                                                                                 {if
                                                                                                 condition="$job.start eq 0"
                                                                                                 }
                                                                                                 checked=""
                                                                                                 {/if}
                                           ><i></i>关闭功能</label>
            <label class="i-checks ml4"><input type="radio" value="1"
                                                                                                 name="is"
                                                                                                 {if
                                                                                                 condition="$job.start eq 1"
                                                                                                 }
                                                                                                 checked=""
                                                                                                 {/if}
                                               ><i></i>开启功能</label>
        </div>
        <hr/>
        <div class="pt4 pb3 in-text">
            <dt class="bold bb pr2">签到模板</dt>
            <dd class="in-auto"><select class="form w h8 bb" name="tuid">
                <option value="1" {if condition="$job.tuid eq 1" } selected="selected" {/if}>天气</option>
				<option value="2" {if condition="$job.tuid eq 2" } selected="selected" {/if}>连续签到</option>
				<option value="3" {if condition="$job.tuid eq 3" } selected="selected" {/if}>早安</option>
				<option value="4" {if condition="$job.tuid eq 4" } selected="selected" {/if}>晚安</option>
				<option value="5" {if condition="$job.tuid eq 5" } selected="selected" {/if}>心情</option>
				<option value="6" {if condition="$job.tuid eq 6" } selected="selected" {/if}>自定义</option>
				<option value="7" {if condition="$job.tuid eq 7" } selected="selected" {/if}>女神节</option>
				<option value="8" {if condition="$job.tuid eq 8" } selected="selected" {/if}>运势</option>
            </select></dd>
        </div>
        <div class="pt1 pb3 in-text">
            <dt class="bold bb pr2">签到地址</dt>
            <dd><input type="text" class="form w h8 bb" name="url" placeholder="输入签到地点，不使用签到地点请留空" value="{$job.url}"
                       autocomplete="off"></dd>
        </div>
        <div class="pt1 pb3 in-text">
            <dt class="bold bb pr2">签到内容</dt>
            <dd><input type="text" class="form w h8 bb" name="con" placeholder="输入你要签到的内容，留空系统默认内容" value="{$job.data}"
                       autocomplete="off"></dd>
        </div>
        <div class="pt1 pb3">
            <div class="in-text bold">
                <dt class="f4 pr5">特殊模式</font></dt>
                <dd>  <label class="i-checks"><input type="radio" name="mode" value="0" onclick="loadNeedData(0);"
                                                                                                 {if
                                                                                                 condition="$job.mode eq 0"
                                                                                                 }
                                                                                                 checked=""
                                                                                                 {/if}
                                                     ><i></i>关闭</label>
                    <label class="i-checks ml4"><input type="radio" name="mode" value="2" onclick="loadNeedData(1);"{if
                                                                                                 condition="$job.mode eq 2"
                                                                                                 }
                                                                                                 checked=""
                                                                                                 {/if}
                                                       ><i></i>黑名单</label></dd>
            </div>
            <div class="pl2 ml12 mt1 f2 hui dl">黑名单：不签到列表QQ群号</div>
            <div id="need" style="display:none;">
            <div class="mt3"><font class="f4 bold">QQ群列表</font><font class="ml4 f2 hui dl">（多个群号之间请使用小数点隔开）</font></div>
            <div class="mt2"><textarea type="text" class="form w b" name="list" placeholder="输入QQ群号" rows="3"
                                       onkeyup="this.value=this.value.replace(/[^\d\.]/,'')"
                                       autocomplete="off">{$job.list}</textarea></div>
        </div>
        </div>
        <div class="pt1 pb3">
            <button class="btn btn-qing btn-md w" onclick="ajax_gnset_qunqd();">保 存 设 置</button>
        </div>
    </div>
</div>
</form>
<script type="text/javascript">
    function ajax_gnset_qunqd() {
        var data = $("#qqsetgn").serialize();
        x.ajax('{:url('pc_ajax/gnset',['act'=>'qunqd'])}', data);
    }
    function loadNeedData(id) {
        if (id == 0) {
            $("#need").hide();
        }else{
            $("#need").show();
        }
    }

    if ('{$job.mode}' == 2) {
        $("#need").show();
    }
</script>